package store

import (
	"auth/model"
	"auth/model/entity"
)

type IAuthority interface {
	Create(e *entity.Authority) (int64, error)
	Find(id int64) (*entity.Authority, error)
	Update(id int64, updates map[string]interface{}) error
	Delete(id int64) error
	List(in *model.AuthorityListRequest) (int, []*entity.Authority, error)
	FindByParameter(in *model.AuthorityInfo) (*entity.Authority, error)
	FindByUserId(userId int64) ([]*entity.Authority, error)
}
